package com.tmc.dao.impl.intcar;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.tmc.bean.common.ContextInfo;
import com.tmc.dao.impl.BaseDaoImpl;
import com.tmc.entity.intcar.IntcarPassenger;


/**
 * @author zhang
 * @date 2017年12月21日 下午2:19:09 
 */
@Repository
public class IntcarPassengerDaoImpl extends BaseDaoImpl<IntcarPassenger>{

	
	public List<IntcarPassenger> findByOrderID(ContextInfo context, Long orderID) {
		String sql = " from IntcarPassenger c where c.enabledFlag = 'Y' and c.orderID = :orderID";
		Map<String,Object> params = new HashMap<>();
		params.put("orderID", orderID);
		return this.findList(sql, params);
	}

}
